package com.itheima.mapper;

import com.itheima.pojo.EmpLoginLog;
import org.apache.ibatis.annotations.*;

@Mapper
public interface EmpLoginLogMapper {
    @Insert("INSERT INTO emp_login_log (username, password, login_time, is_success, jwt, cost_time) " +
            "VALUES (#{username}, #{password}, #{loginTime}, #{isSuccess}, #{jwt}, #{costTime})")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    int insertEmpLoginLog(EmpLoginLog empLoginLog);
}
